# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=4ti2
pkgver=1.6.10
pkgrel=1
pkgdesc="A software package for algebraic, geometric and combinatorial problems on linear spaces"
arch=(loong64 x86_64)
url="https://4ti2.github.io/"
license=(GPL)
depends=(glpk)
source=("https://github.com/4ti2/4ti2/releases/download/Release_${pkgver//./_}/$pkgname-$pkgver.tar.gz")
sha256sums=('f7c191beb14246b643e4fd5b18b53d9966693b9e6d3a569441a0e3ca14b1a86b')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --enable-shared --disable-static
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

